<!DOCTYPE html>
<html layout:decorator="layout">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>管理系统-登录</title>
</head>
<body id="login-page"  layout:fragment="header">
<div class="container">
    <div class="row">
        <div class="col-xs-12">
            <div id="login-box">
                <div id="login-box-holder">
                    <div class="row">
                        <div class="col-xs-12">
                            <header id="login-header">
                                <div id="login-logo">
                                    登录
                                </div>
                            </header>
                            <div id="login-box-inner">
                                <form  id="login_form" th:action="@{/admin/login}" method="post">
                                    <div class="input-group">
                                        <span class="input-group-addon"><i class="fa fa-user"></i></span>
                                        <input class="form-control" type="text" id="userName" name="userName"  placeholder="请输入账号">
                                    </div>
                                    <div class="input-group">
                                        <span class="input-group-addon"><i class="fa fa-key"></i></span>
                                        <input type="password" class="form-control" id="password" name="password" placeholder="密码" value="">
                                    </div>
                                    <div id="remember-me-wrapper" >
                                        <div class="row">
                                            <div class="col-xs-8" style="color: red; float: left" th:if="${param.error != null}">
                                                Invalid username or password!
                                            </div>
                                            <div class="col-xs-4">
                                                <div class="checkbox-nice">
                                                    <input type="checkbox" name="remember" id="remember-me" checked="checked"/>
                                                    <label for="remember-me">
                                                        记住密码
                                                    </label>
                                                </div>
                                            </div>

                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <button type="submit" class="btn btn-success col-xs-12" id="login_submit">登录</button>
                                        </div>
                                    </div>
                                </form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>